package com.spsy.pay.api;

import com.spsy.common.core.constant.ServiceNameConstants;
import com.spsy.common.core.domain.R;
import com.spsy.domain.R2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: liuzhiping
 * @date: 2024/12/17 15:37
 **/
@FeignClient(contextId = "spsyPayProvider" ,value = ServiceNameConstants.PAY_SERVICE)
public interface SpsyPayProvider {

    /***
     * 提供给订单系统调用的下单接口
     * @param orderId
     * @return
     * @throws Exception
     */
    @PostMapping("/pay/orderExec/ahdsihiadsjifhihehhiqiwwe/w239491328y4t7hdhfiw/afsdhgfjhhhgd")
    public R2 orderPay(@RequestParam(name = "orderId") String orderId,@RequestParam(name = "sign") String sign) throws Exception;
}
